package com.saint.news.widget;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.KeyEvent;

import com.saint.news.Utils.AppUtils;

/**
 * Created by Administrator on 2018/3/3.
 */

public class MyViewPager extends ViewPager {
    public MyViewPager(Context context) {
        super(context);
    }

    public MyViewPager(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        AppUtils.play();
        return super.onKeyDown(keyCode, event);
    }
}
